package com.spn.blog.common.vo;

import lombok.Data;
import lombok.NonNull;

import java.io.Serializable;
import java.util.List;

// "文章视图"
@Data
public class ArticleVo implements Serializable {
//1、让我们的ArticleVo中的id保证为Long类型与article保持一致
//2、再在我们ArticleVo中的id字段上添加 @JsonSerialize(using = ToStringSerializer.class)
//3、这个注解的作用是保证了雪花算法得到的id的精度
//    @JsonSerialize(using = ToStringSerializer.class)
    // "主键id"
    private String id;

    // "标题"
    private String title;

    // "摘要"
    private String summary;

    // "评论数量"
    private Integer commentCounts;

    // "浏览数量"
    private Integer viewCounts;

    // "点赞量"
    private Long likeCounts;

    private Integer weight;

    // "创建时间"
    private String createDate;

    // "作者"
    private UserVo author;

    // "内容"
    private ArticleBodyVo body;

    // "标签"
    private List<TagVo> tags;

    // "分类"
    private CategoryVo category;

    // "状态"
    private String status;

    // "原因"
    private String reason;

    // 文章主题图片
    private String topicImg;

}
